#include "problems/8.h"
#include "gtest/gtest.h"

TEST(TestProblemSolutions, TestProblem8)
{
    problem_8::Solution s;
    ASSERT_EQ(s.myAtoi("42"), 42);
    ASSERT_EQ(s.myAtoi("        -42"), -42);
    ASSERT_EQ(s.myAtoi("4193 with words"), 4193);
    ASSERT_EQ(s.myAtoi("words and 987"), 0);
    ASSERT_EQ(s.myAtoi("-91283472332"), -2147483648);
}